﻿@model teavch.Util.SitemapWriterSampleWebMVC.Models.SitemapModel
@{
	ViewBag.Title = "Generate Sitemap";
}

<h2>@ViewBag.Message</h2>
<p>
	Generate sitemap for you website/blog. Download source-code from <a href="https://generatesitemapforwebsite.codeplex.com" title="Generate Sitemap for your Website/Blog (Sitemap Writer)">Generate Sitemap for your Website/Blog (Sitemap Writer)</a>.
</p>

	<div class="teavchSitempWriter" SearchEngine="Google" CrawlUrl="http://techblogster.teavch.com" WebsiteRoot="http://techblogster.teavch.com" >
	</div>

@using ( Ajax.BeginForm( "GenerateSitemap", new AjaxOptions() { HttpMethod = "POST", UpdateTargetId = "divSitemap" } ) )
{
	<div>
		Url: @Html.TextBoxFor( m => m.Url ) &nbsp;&nbsp;<input type="submit" value="Generate" /><br/><br/>
		@Html.LabelFor( m => m.Status )
		<div id="divSitemap" style="width:100%">
			@Html.TextAreaFor( m => m.Sitemap, new { width="100%", height="auto" } )
		</div>
	</div>
}

